#include "PCH.h"
#include "Geometry.h"
using namespace DeviousRenderer;

Geometry::Geometry()
{

}

Geometry::~Geometry()
{

}

void Geometry::BindToIAStage(InputAssemberStage* IAStage)
{
	IAStage->ClearState();

	IAStage->SetPrimitiveTopology(m_ePrimType);
	if (m_iVertexBuffer != -1)
	{
		IAStage->SetVertexBuffer(0, m_iVertexBuffer, 0, m_iVertexSize);
	}

	if (m_iIndexBuffer != -1)
	{
		IAStage->SetIndexBuffer(m_iIndexBuffer);
	}
	//TODO - Input layout
	if (1)
	{
	}
}